package com.pgy.backend.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.io.Serializable;

/**
 * 用户信息
 */
@Data
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    //账号id
    private Long Id;


    //姓名
    private String name;


    //是否为管理员账号
    @NonNull
    private String administrator;


    //密码
    private String password;


}
